package com.rt.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rt.system.mapper.RtQuestionHistoryMapper;
import com.rt.system.domain.RtQuestionHistory;
import com.rt.system.service.IRtQuestionHistoryService;

/**
 * 试题日志记录Service业务层处理
 * 
 * @author Yg
 * @date 2022-04-13
 */
@Service
public class RtQuestionHistoryServiceImpl implements IRtQuestionHistoryService 
{
    @Autowired
    private RtQuestionHistoryMapper rtQuestionHistoryMapper;

    /**
     * 查询试题日志记录
     * 
     * @param logId 试题日志记录主键
     * @return 试题日志记录
     */
    @Override
    public RtQuestionHistory selectRtQuestionHistoryByLogId(Long logId)
    {
        return rtQuestionHistoryMapper.selectRtQuestionHistoryByLogId(logId);
    }

    /**
     * 查询试题日志记录列表
     * 
     * @param rtQuestionHistory 试题日志记录
     * @return 试题日志记录
     */
    @Override
    public List<RtQuestionHistory> selectRtQuestionHistoryList(RtQuestionHistory rtQuestionHistory)
    {
        return rtQuestionHistoryMapper.selectRtQuestionHistoryList(rtQuestionHistory);
    }

    /**
     * 新增试题日志记录
     * 
     * @param rtQuestionHistory 试题日志记录
     * @return 结果
     */
    @Override
    public int insertRtQuestionHistory(RtQuestionHistory rtQuestionHistory)
    {
        return rtQuestionHistoryMapper.insertRtQuestionHistory(rtQuestionHistory);
    }

    /**
     * 修改试题日志记录
     * 
     * @param rtQuestionHistory 试题日志记录
     * @return 结果
     */
    @Override
    public int updateRtQuestionHistory(RtQuestionHistory rtQuestionHistory)
    {
        return rtQuestionHistoryMapper.updateRtQuestionHistory(rtQuestionHistory);
    }

    /**
     * 批量删除试题日志记录
     * 
     * @param logIds 需要删除的试题日志记录主键
     * @return 结果
     */
    @Override
    public int deleteRtQuestionHistoryByLogIds(Long[] logIds)
    {
        return rtQuestionHistoryMapper.deleteRtQuestionHistoryByLogIds(logIds);
    }

    /**
     * 删除试题日志记录信息
     * 
     * @param logId 试题日志记录主键
     * @return 结果
     */
    @Override
    public int deleteRtQuestionHistoryByLogId(Long logId)
    {
        return rtQuestionHistoryMapper.deleteRtQuestionHistoryByLogId(logId);
    }
}
